﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperWebSocket.SubProtocol;

namespace WebCommand.Command
{
    public class CHAT_ALL : SubCommandBase<MySession>
    {
        public override void ExecuteCommand(MySession session, SubRequestInfo requestInfo)
        {
            var list = session.Server.GetAllSession();
            foreach (var item in list)
                item.SendResponseAsync(string.Format("CHAT {0}对全体人说:{1}", session.UserName, requestInfo.Data));
        }
    }
}
